import request from '@/utils/request'
// 封装登录接口API
export function loginAPI(data) {
  return request({
    url: '/sys/login',
    method: 'post',
    data
  })
}
// 封装获取个人资料接口API
export function getUserInfoAPI() {
  return request({
    url: '/sys/profile'
  })
}
// 封装修改密码接口API
export function updatePasswordAPI(data) {
  return request({
    url: '/sys/user/updatePass',
    method: 'put',
    data
  })
}
